package com.ruoyi.task;

import com.ruoyi.system.service.CommonService;
import com.ruoyi.system.service.IEquipmentManagementService;
import com.ruoyi.system.service.ISimCardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;



/**
 * 描述 定时任务
 * 作者 ZhangPing
 * 创建时间 2023/9/5 18:30
 */
@Component("comLbsTask")
@Slf4j
public class ComLbsTask {

    @Autowired
    private ISimCardService simCardService;
    @Autowired
    private CommonService commonService;
    @Autowired
    private IEquipmentManagementService equipmentManagementService;

    /**
     * 更新车辆在线状态
     */
    public void deviceStatusUpdateJob(){
//        commonService.getDeviceOnlineDataFromService();
    }

    /**
     * sim卡信息更新定时任务
     */
    public void simCardUpdateJob(){
        simCardService.simCardUpdateAll();
    }

    /**
     * 设备自检
     */
    public void equipmentCheckJob(){
        equipmentManagementService.equipmentCheck(null);
    }

    /**
     * 更新下发省平台定时任务
     */
    public void equipmentUploadPlatformJob(){
        equipmentManagementService.startEquipmentUploadPlatform(null);
    }


}
